package club.banyuan.reserve.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author HanChao
 * 描述：路由
 */
@Controller
public class IndexController {

    @GetMapping(value = {"/","/index"})
    public String index () {
        return "index";
    }

    @GetMapping(value = "/login")
    public String login () {
        return "login";
    }

    @GetMapping(value = "/register")
    public String register () {
        return "register";
    }

    @GetMapping(value = "/history")
    public String history () {
        return "history";
    }

    @GetMapping(value = "/book")
    public String book () {
        return "book";
    }

    @GetMapping(value = "/admin")
    public String admin () {
        return "admin";
    }

    @GetMapping(value = "/adminLogin")
    public String adminLogin () {
        return "adminLogin";
    }

    @GetMapping(value = "/adminPosition")
    public String adminPosition () {
        return "adminPositions";
    }

    @GetMapping(value = "/adminRecords")
    public String adminRecords () {
        return "adminRecords";
    }

    @GetMapping(value = "/adminRecordsecords")
    public String adminRecordsecords () {
        return "adminRecords";
    }

    @GetMapping(value = "/adminUser")
    public String adminUser () {
        return "adminUser";
    }

    @GetMapping(value = "/adminPositions")
    public String adminPositions () {
        return "adminPositions";
    }
}
